import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import nl.ansuz.android.steam.dota.request.DotaRequest;
import nl.ansuz.android.steam.request.SteamRequest;
import nl.ansuz.android.steam.request.user.GetPlayerSummaries;
import nl.ansuz.android.steam.response.user.GetPlayerSummariesResponse;
import nl.ansuz.android.steam.util.GsonUtil;

import com.google.gson.Gson;


public class GetPlayerSummariesTest {
	public static void main(String[] args) throws IOException {
		GetPlayerSummaries getPlayerSummaries = new GetPlayerSummaries();
		Map<String, String> params = new HashMap<String, String>();
		params.put(SteamRequest.Parameter.API_KEY, "18755ABB58C0BE96815AE471FBB1C3F2"); 
		/*
		 * |         0 |
|     26256 |
|     35006 |
|    103149 |
|    123114 |
|    125426 |
|    151489 |
|    178654 |
|    185353 |
|    185513
		 */
		long steamid = 185513 +76561197960265728l ;								  
		  params.put("steamids","76561197960265728,76561197960272018,76561197960451081,76561197960480804,76561197960508417,76561197960520025,76561197960657455,76561197960675873,76561197960698719,76561197960843584,76561197961265586,76561197961448850"); 
		//params.put("skill", "1");
		String url = getPlayerSummaries.createRequestUrl(DotaRequest.ApplicationID.LIVE, params);
		
		System.out.println(url);
		
		String resopnse = ManipulaHttp2.executaConsulta(url);
		System.out.println(resopnse);
		
		GsonUtil gsonUtil = new GsonUtil();
		
		Gson gson = new Gson();
		
		GetPlayerSummariesResponse getMatchHistoryResponse = gson.fromJson(gsonUtil.getStrippedSteamResult(resopnse ), GetPlayerSummariesResponse.class);
		
		System.out.println(getMatchHistoryResponse.players[0].personaName);
		
		
		
	}
}
